﻿<UserControl x:Class="FXC.SL.UserControls.InstantDataWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="200">

    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Data, Source={StaticResource DataWindowViewModal}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="90" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" Background="#c3c3c3">
            <Image Source="../Images/Res/rebuild.png" VerticalAlignment="Center" Width="16" Height="16" Stretch="Fill" Margin="5,0"/>
            <TextBlock FontWeight="Bold" Text="EURAUD" VerticalAlignment="Center" HorizontalAlignment="Center" />
        </StackPanel>
        <Border Grid.Row="1" Grid.ColumnSpan="2" Background="White" BorderThickness="1,1,1,0" BorderBrush="Black" />
        <Border Grid.Row="2" Grid.ColumnSpan="2" Background="#c3c3c3" BorderThickness="1,1,1,0" BorderBrush="Black" />
        <Border Grid.Row="3" Grid.ColumnSpan="2" Background="White" BorderThickness="1,1,1,0" BorderBrush="Black" />
        <Border Grid.Row="4" Grid.ColumnSpan="2" Background="#c3c3c3" BorderThickness="1,1,1,0" BorderBrush="Black" />
        <Border Grid.Row="5" Grid.ColumnSpan="2" Background="White" BorderThickness="1,1,1,0" BorderBrush="Black" />
        <Border Grid.Row="6" Grid.ColumnSpan="2" Background="#c3c3c3" BorderThickness="1,1,1,0" BorderBrush="Black" />
        <Border Grid.Row="7" Grid.ColumnSpan="2" Background="White" BorderThickness="1,1,1,1" BorderBrush="Black" />
        <Border Grid.Row="1" Grid.Column="0" Grid.RowSpan="7"  BorderThickness="0,0,1,0" BorderBrush="Black" />
        <TextBlock Grid.Row="1" Text="Date:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <TextBlock Grid.Row="2" Text="Time:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <TextBlock Grid.Row="3" Text="Open:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <TextBlock Grid.Row="4" Text="High:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <TextBlock Grid.Row="5" Text="Low:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <TextBlock Grid.Row="6" Text="Close:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <TextBlock Grid.Row="7" Text="Volume:" HorizontalAlignment="Center" VerticalAlignment="Center" />
        <!--Real data-->
        <TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding Date}" />
        <TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding Time}" />
        <TextBlock Grid.Row="3" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding Open}" />
        <TextBlock Grid.Row="4" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding High}" />
        <TextBlock Grid.Row="5" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding Low}" />
        <TextBlock Grid.Row="6" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding Close}" />
        <TextBlock Grid.Row="7" Grid.Column="1" Style="{StaticResource DataWindowDataText}" Text="{Binding Volume}"/>
    </Grid>
</UserControl>
